package com.cancan.cloud.shop.threadContext;

import org.springframework.stereotype.Component;

@Component
public class ThreadContextManageUtils {

    /**
     * @return 线程上下文
     * @Description 获取线程上下文
     */
    public static ThreadContext getThreadContext() {
        return ThreadContextManage.getThreadContext();
    }

	/**
	 * 删除线程上下文（实例）
	 */
	public static void clearThreadContext() {
        ThreadContextManage.clearThreadContext();
    }

	/**
	 * 把线程上下文key，value清空
	 */
	public static void makeThreadContextEmpty() {
        ThreadContextManage.makeThreadContextEmpty();
    }
}